package hfdp.chp06.chp0601;

/**
 * Invoker
 * Created by chei on 2016/8/24.
 */
public class SimpleRemoteControl {

    private Command slot;

    public SimpleRemoteControl() {
    }

    public void setSlot(Command slot) {
        this.slot = slot;
    }

    public void buttonWasPressed(){
        slot.execute();
    }
}
